import request from '@/utils/request'

// 新增直播间
export function addVideo(data) {
  return request({
    url: '/video/ks/addVideo',
    method: 'post',
    data: data
  })
}


//开始获取直播间
export function startVideo(id) {
  return request({
    url: '/video/ks/startVideo/' + id,
    method: 'get'
  })
}


//结束获取直播间
export function stopVideo(id) {
  return request({
    url: '/video/ks/stopVideo/' + id,
    method: 'get'
  })
}


//获取直播间状态
export function getStatus(id) {
  return request({
    url: '/video/ks/getStatus/' + id,
    method: 'get'
  })
}


//sendNoindy
export function sendNoindy() {
  return request({
    url: '/video/ks/sendNoindy',
    method: 'get'
  })
}


//设置cookie
export function setCookie(data) {
  return request({
    url: '/video/ks/setCookie',
    method: 'post',
    data: data
  })
}
